package com.cema.manage.project.android.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.cema.manage.project.android.service.BizVersionUpdateService;
import com.cema.manage.project.manage.versionUpdate.domain.VersionUpdate;
import com.cema.manage.project.manage.versionUpdate.service.IVersionUpdateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 版本更新
 *
 * @author reasahi
 * @date 2024-07-08
 */
@Service
public class BizVersionUpdateServiceImpl implements BizVersionUpdateService {

    @Resource
    public IVersionUpdateService versionUpdateService;

    @Override
    public VersionUpdate getVersion(Integer channelPackage) {
        EntityWrapper<VersionUpdate> entityWrapper = new EntityWrapper<>();
        entityWrapper.eq("vu_status", 1);
        entityWrapper.eq("vu_channel_package", channelPackage);
        return versionUpdateService.selectOne(entityWrapper);
    }

}
